button in html

39

how to create a button in html -

<button onclick="window.location.href='/page2'">Continue</button>

type button on form -

<form action="/button-type">
<button type="button" onclick="alert('This button does nothing.')">Click me for no reason!</button><br><br>
<label for="name">Name</label><br>
<input name="name"><br><br>
<button type="reset">Reset the form!</button><br><br>
<button type="submit">Submit (disabled)</button>
</form>

Comments

Submit
0 Comments